using System;
using System.Threading.Tasks;

namespace DesktopWidgetApp.Client.Services
{
    /// <summary>
    /// 状态服务
    /// 简化版本，提供基本的用户状态管理功能
    /// </summary>
    public class StatusService
    {
        /// <summary>
        /// 获取用户当前状态
        /// </summary>
        /// <returns>用户状态任务</returns>
        public Task<UserStatus> GetUserCurrentStatusAsync()
        {
            // 返回默认用户状态
            return Task.FromResult(new UserStatus
            {
                Id = "default-status",
                IsDoNotDisturb = false,
                LastUpdated = DateTime.Now
            });
        }

        /// <summary>
        /// 更新用户状态
        /// </summary>
        /// <param name="status">新的用户状态</param>
        /// <returns>更新结果任务</returns>
        public Task<bool> UpdateUserStatusAsync(UserStatus status)
        {
            // 简化实现，始终返回成功
            return Task.FromResult(true);
        }
    }

    /// <summary>
    /// 用户状态模型
    /// </summary>
    public class UserStatus
    {
        public string Id { get; set; }
        public bool IsDoNotDisturb { get; set; }
        public DateTime LastUpdated { get; set; }
    }
}